package com.iss.airsys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;

@Controller
public class DirectionController {
    @RequestMapping("gotoroomIndex")
    public String gotoroomIndex(){
        return "roomIndex";
    }
    @RequestMapping("gotoroomIndex2")
    public String gotoroomIndex2(){
        return "roomIndex2";
    }
    @RequestMapping("gotoregister")
    public String gotoregister(){

        return "register";
    }
    @RequestMapping("gotodatacurve")
    public String gotoshouye(){
        return "datacurve";
    }

    @RequestMapping("node/{id}")
    public String gotoNode(@PathVariable("id") String id){
        System.out.println("id="+id);
        return "node"+id;
    }
    @RequestMapping("gotoemployee_info")
    public String gotoInfo(Integer em_id , HttpSession session){
        session.setAttribute("em_id",em_id);
        return "employee_info";
    }

}
